using System;
using System.ComponentModel.DataAnnotations;

namespace Zapi.Log.Db
{
    public partial class ApiLogs
    {
        public int Id { get; set; }

        [Required]
        [StringLength(20)]
        public string AppName { get; set; }

        [Required]
        [StringLength(50)]
        public string AppAliasName { get; set; }

        [StringLength(20)]
        public string AppVersionBuild { get; set; }

        [StringLength(50)]
        public string Name { get; set; }

        [StringLength(50)]
        public string Ip { get; set; }

        [StringLength(20)]
        public string Method { get; set; }

        [StringLength(1000)]
        public string Url { get; set; }

        public string Response { get; set; }

        [StringLength(1000)]
        public string Request { get; set; }

        public DateTime CreateTime { get; set; }

        [StringLength(20)]
        public string ClientVersion { get; set; }

        [StringLength(10)]
        public string ClientName { get; set; }

        public decimal? Lng { get; set; }

        public decimal? Lat { get; set; }

        [StringLength(50)]
        public string Device { get; set; }

        public string StackTrace { get; set; }

        [StringLength(5)]
        public string StatusCode { get; set; }
    }
}
